<?php

namespace common\models\common;

use Yii;

/**
 * This is the model class for table "{{%true_delete_log}}".
 *
 * @property int $id
 * @property int|null $project_id
 * @property string|null $delete_name 删除字段名称
 * @property int|null $delete_id 删除字段id
 * @property string|null $delete_table 删除字段所在表
 * @property int|null $operator_id 操作人id
 * @property string|null $operator_name 操作人姓名
 * @property string|null $effect_table 影响的表名
 * @property int|null $created_at
 * @property int|null $updated_at
 */
class TrueDeleteLog extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%true_delete_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['project_id', 'delete_id', 'operator_id', 'created_at', 'updated_at'], 'integer'],
            [['delete_name', 'effect_table'], 'string', 'max' => 255],
            [['delete_table', 'operator_name'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_id' => 'Project ID',
            'delete_name' => 'Delete Name',
            'delete_id' => 'Delete ID',
            'delete_table' => 'Delete Table',
            'operator_id' => 'Operator ID',
            'operator_name' => 'Operator Name',
            'effect_table' => 'Effect Table',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
